docker stop $(docker ps -a | awk '{ print $1}' | tail -n +2)
docker rm $(docker ps -a | awk '{ print $1}' | tail -n +2)

cd db
make
make run
echo "-------------db init success----------------"

cd ../RedisConfig
make
make run
echo "-------------redis init success----------------"

docker pull rabbitmq:3.9-management
mkdir -p /home/rabbitmq/data
docker run --name rabbitmq -d -p 15672:15672 -p 5672:5672 -v /home/rabbitmq/data:/data -e RABBITMQ_DEFAULT_USER=guest -e RABBITMQ_DEFAULT_PASS=guest rabbitmq:3.9-management

cd ../base
mvn clean install
make
make run
echo "-------------base_app build success----------------"